import axios from 'axios'

export default {
  getCamera () {
    let url = '/api/camera'
    return new Promise((resolve, reject) => {
      axios.get(url, {timeout: 3000})
      .then(res => {
        resolve(res.data)
      })
      .catch(error => {
        reject(error)
      })
    })
  }
}
